<?php
	include_once ("constant.php");
	class DataProvider{
		public static function executeQuery($sql){
			//$connection = new mysqli("localhost", "root", "", "vblog") or	die("Couldn't connect to database!");
			$connection = new mysqli(dbhost, dblogin, dbpwd, database) or	die("Couldn't connect to database!");
			$connection->set_charset("utf8");
			$result = $connection->query($sql) or die("Query failed!");
			$threadId = $connection->thread_id;
			$connection->close();
			//$connection->kill($threadId);
			return $result;
		}
	}
?>
